package com.itheima.service.impl;

import com.itheima.pojo.User;
import com.itheima.service.UserService;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author wz
 * @description:
 * @date 2021-10-30
 */
public class UserServiceImpl3 implements UserService {
    private String userName;
    private Integer age;
    private User user;

    private Set houses;

    public void setHouses(Set houses) {
        this.houses = houses;
    }

    private Properties propes;

    public void setPropes(Properties propes) {
        this.propes = propes;
    }

    private Map<String, Object> maps;

    public void setMaps(Map<String, Object> maps) {
        this.maps = maps;
    }

    private List<User> userList;

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    private String[] addresses;

    public void setAddresses(String[] addresses) {
        this.addresses = addresses;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setInfo(String info) {
        System.out.println(info);
    }


    @Override
    public void add() {
        System.out.println("service add run ....");
    }

    public void initUser() {
        System.out.println("init user ....");
    }

    public void destroyUser() {
        System.out.println("destroy user ....");
    }

    @Override
    public String toString() {
        return "UserServiceImpl3{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                ", user=" + user +
                '}';
    }
}
